package com.zq.vaccinum.constant;

/**
 * @Author: zq
 * @Date: 2023/08/03/14:27
 * @Description:
 */
public enum CodeEnum {
    SUCCESS(200, "登录成功"),
    CAPTCHA_ERROR(500,"验证码错误"),
    CAPTCHA_EXPIRE(201,"验证码过期"),
    PASSWORD_ERROR(10010, "用户密码错误"),
    UNKNOWN_ERROR(10086, "发生未知异常");

    private Integer code;
    private String message;

    CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
